package com.homegoods.designer.ui.activity;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.designer.R;
import com.homegoods.designer.databinding.DesignerActivityEditDesignerInfoBinding;
import com.homegoods.designer.presenter.EditDesignerInfoPresenter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;
import com.kedll.library.mvp.BaseView;

/**
 * @author QiQi
 */
@Route(path = ARouterPath.PATH_EDIT_DESIGNER_INFO)
public class EditDesignerInfoActivity extends MyBaseFragmentActivity<DesignerActivityEditDesignerInfoBinding, EditDesignerInfoPresenter> implements BaseView {

    @Autowired
    public String title;


    @Override
    public int getLayout() {
        return R.layout.designer_activity_edit_designer_info;
    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        ARouter.getInstance().inject(this);

        mBinding.listview.setAdapter(mPresenter.getAdapter());
    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle(title);
    }

    @Override
    protected EditDesignerInfoPresenter getPresenter() {
        return new EditDesignerInfoPresenter(this, title);
    }

}
